package biolean;

import java.awt.BorderLayout;
import java.awt.event.KeyListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

import biolean.logic.Connection;


public class ScrollingTextArea extends JPanel{
	 
	JTextArea txt = new JTextArea(5,20);
	JScrollPane scrolltxt = new JScrollPane(txt, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
	public ScrollingTextArea() 
	{
		txt.setEditable(false);
		setLayout(new BorderLayout());
 		scrolltxt.setBounds(3, 3, 300, 200);
		add(scrolltxt);		
	}

	
	public void Append(String str)
	{
		txt.append(str);
		txt.append("\n");
	}
}